#ifndef YTESTDEFAULTDELETE_H
#define YTESTDEFAULTDELETE_H
#include <iostream>
using namespace std;
class PrivateCopy {
  public:
    PrivateCopy() =default;
    PrivateCopy(int i) : mi(i) {}
    ~PrivateCopy()=default;
    void print()
    {
        cout<<"mi:"<<mi<<endl;
    }
    void print1()
    {
        PrivateCopy cp;
        cp = 4;
    }
  private:
    PrivateCopy(const PrivateCopy &obj)=default;
    PrivateCopy& operator=(const PrivateCopy &obj) = default;
  private:
    int mi;
};
void testDefaultDelete() {
    PrivateCopy cp;
}

#endif